<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Hidden
 *
 * @author chaporgin_a
 */
class VA_Form_ViewHelper_XHTML_Hidden extends VA_Form_ViewHelper {
  public function wrap(){
    $this->getElement()->setHTMLTagAttribute('type', 'hidden', TRUE);
    $this->getElement()->setHTMLTagAttribute('value', $this->getValueOfElement(), TRUE);
    return sprintf('<input %s />'
            , $this->getElement()->getAllAttributesAsHTML());
  }
}

